package com.ihrm.system.dao;


import com.github.pagehelper.Page;
import com.ihrm.domain.system.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleDao {
    Integer insert(Role role);

    Integer del(String id);

    Integer update(Role role);

    @Select("select * from pe_role where id = #{id}")
    Role getById(String id);

    Page pageFind(Role role);

    @Select("select * from pe_role where company_id = #{companyId}")
    List<Role> findAll(Role role);
}
